load("@io_bazel_rules_go//go:def.bzl", "go_test")

go_test(
    name = "partition_test",
    timeout = "short",
    srcs = [
        "db_partition_test.go",
        "error_injection_test.go",
        "exchange_partition_test.go",
        "main_test.go",
        "multi_domain_test.go",
        "placement_test.go",
        "reorg_partition_test.go",
    ],
    flaky = True,
    shard_count = 50,
    deps = [
        "//pkg/config",
        "//pkg/config/kerneltype",
        "//pkg/ddl",
        "//pkg/ddl/logutil",
        "//pkg/ddl/testutil",
        "//pkg/ddl/util",
        "//pkg/domain",
        "//pkg/domain/infosync",
        "//pkg/errno",
        "//pkg/expression",
        "//pkg/kv",
        "//pkg/meta/model",
        "//pkg/parser/ast",
        "//pkg/parser/mysql",
        "//pkg/parser/terror",
        "//pkg/session",
        "//pkg/sessionctx",
        "//pkg/sessionctx/vardef",
        "//pkg/sessiontxn",
        "//pkg/statistics/handle/ddl/testutil",
        "//pkg/store/gcworker",
        "//pkg/store/mockstore",
        "//pkg/table",
        "//pkg/table/tables",
        "//pkg/tablecodec",
        "//pkg/testkit",
        "//pkg/testkit/external",
        "//pkg/testkit/testfailpoint",
        "//pkg/testkit/testsetup",
        "//pkg/types",
        "//pkg/util/codec",
        "//pkg/util/dbterror",
        "//pkg/util/logutil",
        "@com_github_pingcap_errors//:errors",
        "@com_github_pingcap_failpoint//:failpoint",
        "@com_github_stretchr_testify//assert",
        "@com_github_stretchr_testify//require",
        "@org_uber_go_goleak//:goleak",
        "@org_uber_go_zap//:zap",
    ],
)
